<template>
    <div class="buttonBox" @click="handleClick">
        {{btnName}}
    </div>
</template>

<script>
export default {
  props: {
    btnName: String
  },
  methods: {
    handleClick () {
      this.$emit('handleClick', this.btnName)
    }
  }
}
</script>

<style scoped>
.buttonBox{
    width: 150rpx;
    height: 50rpx;
    line-height: 50rpx;
    color: #000;
    text-align: center;
    font-size: 24rpx;
    border: 1px solid #e8e8d0;
    border-radius: 25px;
}
</style>
